/**
 * @author DongPing
 * 2022/1/18 9:48
 *
 * 根据下拉框选择的value，从选项中获取对应的名称
 *
 * */
import {TSelectOptions} from "@/common-data-source/type";

export function getSelectOptionNameByValue(selectOptions: TSelectOptions, value: string): string {
	return selectOptions.find((item) => item.value === value)?.name || '';
}
